import numpy as np

# 1.默认为浮点型
a = np.ones([5])
print(a)
""" 
[1. 1. 1. 1. 1.]
"""

# 2.int数组
a = np.ones([2, 3], dtype=int)
print(a)
""" 
[[1 1 1]
 [1 1 1]]
"""